{*
 * This file is part of the Agora distribution. 
 * Detailed copyright and licensing information can be found
 * in the gpl-3.0.txt file which should be included in the distribution.
 * 
 * @version		$Id: 3.0.14 Olympus 2010-09-28 rammstein4o $
 * @copyright  2007 - 2010 jVitals
 * @license   GPLv3 Open Source
 * @link       http://jvitals.com
 * @since      File available since initial release
 *}	

{* MH - 20090925 - changed the enctype to support file upload *}
<form method="POST" enctype="multipart/form-data">
	{$html->form->param('option','com_agora')}
	{$html->form->param('task','configuration')}
	{$html->form->param('page','smilies')}
	{$html->form->param('action','save')}
	{$html->form->param('type','clean')}
	
  {* !!! - unsure if this is neccessary *}
  <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
	
	<table class="adminlist" cellpadding="0" cellspacing="0" border="0">
		<tr valign="top">
			<th class="editlinktip hasTip" title="##Smiley Code##::##Smiley Code Description##" scope="row">##Smiley Code##</th>
			<td>
				<input type="text" name="smiley_code" size="25" />
		  </td>
		</tr>

		<tr valign="top">
			<th class="editlinktip hasTip" title="##Smiley Image##::##Smiley Image Description##" scope="row">##Smiley Image##			</th>
			<td>
				<!--<input type="text" name="smiley_image" size="25" />-->
        <div id="smileyImgList" style="height: 170px;overflow-y:scroll; border:1px solid #CCCCCC;">
          {* loop through and place each image in the list *}
          {foreach from=$fileList item=file}
					  <div>
              <input type="radio" name="smiley_image" value="{$file}" />&nbsp;
              <img src="{$smileyPath}{$file}" />&nbsp;
              {$file}
            </div>
          {/foreach}
        </div>
		  </td>
		</tr>

    <tr valign="top">
			<th class="editlinktip hasTip" title="##Upload Smiley##::##Upload Smiley_2##" scope="row">##Upload Smiley##			</th>
			<td>
				<input type="file" name="smiley_upload" id="smiley_upload" />
		  </td>
		</tr>

		<tr valign="top">
			<td colspan="2" align="center">
				<input type="submit" value="##Submit##"/>
				<input type="button" value="##Cancel##" onclick="window.parent.document.getElementById('sbox-window').close();"/>
		  </td>
		</tr>
  </table>
</form>
